﻿using System;
using Autodesk.Revit.DB;
using Autodesk.Revit.DB.Architecture;
using Autodesk.Revit.UI.Selection;
using YJKRoomInspection.Properties;

namespace YJKRoomInspection.Utiltiy
{
	internal class SelectionFilterRoom : ISelectionFilter
	{
		public bool AllowElement(Element elem)
		{
			return elem is Room && ((Room)elem).get_Parameter(BuiltInParameter.ELEM_CATEGORY_PARAM).AsValueString().Equals(Resources.Str_nameRoom);
		}

		public bool AllowReference(Reference reference, XYZ position)
		{
			return true;
		}
	}
}
